using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SECTION_2_PART_B_EX_2
{
    class Program
    {
        static void Main(string[] args)
        {
            Boolean rsp = false;
            while (rsp == false) {

              Console.WriteLine("Do you want to start the game?");
              string  response = Console.ReadLine();
                if (response == "YES")
                {
                    Console.WriteLine("Game on!");
                    rsp = true;
                }
                else {
                    Console.WriteLine("Do you really wish to quit? ");
                 
                    string input = Console.ReadLine();
                    if (input == "YES")
                    {
                        rsp = true;
                    }
                }
            }
        }
        static bool IsQuitting()
        {
            string response;
            bool quit = false;
            WriteText("Do you really wish to quit? ", 20, 13);
            response = Console.ReadLine();
            if (response == "YES")
            {
                quit = true;
            }
            return quit;
        }
        static void WriteText(string text, int x, int y)
        {
            Console.CursorLeft = x;
            Console.CursorTop = y;
            Console.Write(text);
        }
    }
}
